﻿
using LogNaga;

namespace LogNaga
{
	public class CachedQueue
	{
		private static ThreadSafeQueue<Error> instance;
		private static readonly object syncRoot = new object();

		private CachedQueue() { }

		public static ThreadSafeQueue<Error> Instance
		{
			get
			{
				if (instance == null)
				{
					lock (syncRoot)
					{
						if (instance == null)
						{
							instance = new ThreadSafeQueue<Error>();
						}
					}
				}

				return instance;
			}
		}
	}
}
